Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 4 - Geometric Objects / Geometric Objects Reference
Geometric Objects Routines / Traversing Mesh Components, Vertices, Faces, and Edges


Q3Mesh_FirstMeshComponent

You can use the Q3Mesh_FirstMeshComponent function to get the first component of a mesh.

TQ3MeshComponent Q3Mesh_FirstMeshComponent (
TQ3GeometryObject mesh, 
TQ3MeshIterator *iterator);
mesh
A mesh.
iterator
A pointer to a mesh iterator structure.
DESCRIPTION
The Q3Mesh_FirstMeshComponent function returns, as its function result, the first mesh component in the mesh specified by the mesh parameter. The iterator parameter is a pointer to a mesh iterator structure that Q3Mesh_FirstMeshComponent fills in before returning. You should pass the address of that structure to the Q3Mesh_NextMeshComponent function.

SPECIAL CONSIDERATIONS
The Q3Mesh_FirstMeshComponent function might not accurately report the first mesh component in a mesh if called while mesh updating is delayed (that is, after a call to Q3Mesh_DelayUpdates but before the matching call to Q3Mesh_ResumeUpdates).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996